/*
 * @Author: byron
 * @Date: 2022-02-17 01:51:24
 * @LastEditTime: 2022-02-17 14:01:05
 */

import {
    request
} from '../http'

// export const getDiary = () => request.get(`/diary/queryDiary`)

export const getDiary = () => request({
    url: `/diary/queryAllDiary`,
    method: 'get',
})


export const addDiary = (data) => request.post(`/diary/addDiary`, data)
export const deleteDiary = (id) => request.delete(`/diary/delete/${id}`)
export const updateStatusDiary = (data) => request.put(`/diary/updateStatus`, data)